/*
 * 杭州绿漫科技有限公司
 * Copyright (c) 16-6-21 下午8:47.
 */

package com.jams.goodox.entity;

import com.jams.goodox.utils.JSONHelper;

import org.json.JSONObject;

import java.io.Serializable;

public class AssessInfo implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    String appraiseContent;
    String replyContent;
    int isReply;//1、有回复 0、无回复
    int appraiseQuality;
    int appraiseSpeed;
    String objId;
    String orderid;

    int oldAppraiseQuality;
    String replyUser;
    String oldAppraiseTime;
    String orderNum;
    String oldAppraiseContent;
    int appraiseType;
    String replyTime;
    String userAddress;
    String appraiseAgain; // 表示是否已经修改评价， 0是没有，1 是已经修改。

    String appraiseUser;
    int oldAppraiseSpeed;
    String appraiseUserName;

    public static AssessInfo buildBean(JSONObject o) {
        AssessInfo info = new AssessInfo();
        info.setAppraiseAgain(JSONHelper.getString(o, "appraiseAgain"));
        info.setAppraiseContent(JSONHelper.getString(o, "appraiseContent"));
        info.setAppraiseQuality(JSONHelper.getInt(o, "appraiseQuality"));
        info.setAppraiseSpeed(JSONHelper.getInt(o, "appraiseSpeed"));
        info.setAppraiseType(JSONHelper.getInt(o, "appraiseType"));
        info.setAppraiseUser(JSONHelper.getString(o, "appraiseUser"));
        info.setAppraiseUserName(JSONHelper.getString(o, "appraiseUserName"));
        info.setReplyContent(JSONHelper.getString(o, "replyContent"));
        info.setIsReply(JSONHelper.getInt(o, "isReply"));
        return info;
    }

    public String getObjId() {
        return objId;
    }

    public void setObjId(String objId) {
        this.objId = objId;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public int getOldAppraiseQuality() {
        return oldAppraiseQuality;
    }

    public void setOldAppraiseQuality(int oldAppraiseQuality) {
        this.oldAppraiseQuality = oldAppraiseQuality;
    }

    public String getReplyUser() {
        return replyUser;
    }

    public void setReplyUser(String replyUser) {
        this.replyUser = replyUser;
    }

    public String getOldAppraiseTime() {
        return oldAppraiseTime;
    }

    public void setOldAppraiseTime(String oldAppraiseTime) {
        this.oldAppraiseTime = oldAppraiseTime;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getOldAppraiseContent() {
        return oldAppraiseContent;
    }

    public void setOldAppraiseContent(String oldAppraiseContent) {
        this.oldAppraiseContent = oldAppraiseContent;
    }

    public int getAppraiseType() {
        return appraiseType;
    }

    public void setAppraiseType(int appraiseType) {
        this.appraiseType = appraiseType;
    }

    public String getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(String replyTime) {
        this.replyTime = replyTime;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getAppraiseAgain() {
        return appraiseAgain;
    }

    public void setAppraiseAgain(String appraiseAgain) {
        this.appraiseAgain = appraiseAgain;
    }

    public String getAppraiseUser() {
        return appraiseUser;
    }

    public void setAppraiseUser(String appraiseUser) {
        this.appraiseUser = appraiseUser;
    }

    public int getOldAppraiseSpeed() {
        return oldAppraiseSpeed;
    }

    public void setOldAppraiseSpeed(int oldAppraiseSpeed) {
        this.oldAppraiseSpeed = oldAppraiseSpeed;
    }

    public String getAppraiseUserName() {
        return appraiseUserName;
    }

    public void setAppraiseUserName(String appraiseUserName) {
        this.appraiseUserName = appraiseUserName;
    }

    public String getAppraiseContent() {
        return appraiseContent;
    }

    public void setAppraiseContent(String appraiseContent) {
        this.appraiseContent = appraiseContent;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public int getIsReply() {
        return isReply;
    }

    public void setIsReply(int isReply) {
        this.isReply = isReply;
    }

    public int getAppraiseQuality() {
        return appraiseQuality;
    }

    public void setAppraiseQuality(int appraiseQuality) {
        this.appraiseQuality = appraiseQuality;
    }

    public int getAppraiseSpeed() {
        return appraiseSpeed;
    }

    public void setAppraiseSpeed(int appraiseSpeed) {
        this.appraiseSpeed = appraiseSpeed;
    }

}
